let g:NERDTreeWinPos = "right"
function! s:load_nerdtree()abort
  " {{{ MiniBufExpl config
  let g:miniBufExplMinSize = 40
  let g:miniBufExplVSplit = 20 " open in vertical
  let g:miniBufExplSplitToEdge = 0 " open relative to previous window (NERDTree)
  "let g:miniBufExplBRSplit=1
" }}} MiniBufExpl config

" {{{ winmanager config
" register the plugins
  let g:NERDTree_title='NERD Tree'
  let g:MiniBufExpl_title='MiniBufExpl'
  " set the layout
  "let g:winManagerWindowLayout='TagList|NERDTree|MiniBufExpl'
  let g:winManagerWindowLayout='TagList|MiniBufExpl'
  let g:bufExplorerMaxHeight = 10
" handler for NERDTree
  function! Tagbar_Start()
      exec "Tagbar"
  endfunction
  function! NERDTree_Start()
      exec 'NERDTree'
  endfunction
  function! BufExplorer_Start()
      exec "BufExplorer"
  endfunction

" handler for MiniBufExpl
  function! MiniBufExpl_Start()
      exec 'MBEOpen'
  endfunction
  "set winwidth=100
  " mapping to toggle the split to F4
  "nmap <F4> :WMToggle
    " }}} winmanager config
endfunction
"call s:load_nerdtree()


